<%=render(:partial=>"user_account")%>
<table>
  <th>操作</th>
  <th>收入/支出</th>
  <th>操作金额</th>
  <th>帐户余额</th>
  <th>订单号</th>
  <th>时间</th>
<% for acc_rcd in @account_records %>
  <tr>
    <td><%=h acc_rcd.operation %></td>
    <td><%=h AccountRecord.opp[acc_rcd.operation_prop] %></td>
    <td><%=h acc_rcd.money_amount %></td>
    <td><%=h acc_rcd.money_left %></td>
    <td><%=link_to "订单#{acc_rcd.order_id}",:controller=>"orders",:action=>"show",:id=>acc_rcd.order_id %></td>
    <td><%=h acc_rcd.created_at.strftime('%Y-%m-%d %H:%m:%S')%></td>
  </tr>
<% end %>
</table>
